package uutalk.netcloud.talk.app.ui;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

import uutalk.netcloud.talk.app.ALauncher;

/**
 * 类描述：
 * 作者：Pengmutian
 * 时间：2018/6/5
 */
public class BootCompletedReceiver extends BroadcastReceiver {
    @Override
    public void onReceive(Context context, Intent intent) {
        if (intent.getAction().equals(Intent.ACTION_BOOT_COMPLETED))
        {
            Intent newIntent = new Intent(context, ALauncher.class);
            newIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
            context.startActivity(newIntent);
        }
    }
}
